var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(e, d, c) {
    if (status == 0 && e == 0) {
        cm.dispose();
        return
    }(e == 1) ? status++ : status--;
    selectionLog[status] = c;
    var b = -1;
    if (status <= b++) {
        cm.dispose()
    } else {
        if (status === b++) {
            cm.askYesNo("要返回次元图书馆吗？")
        } else {
            if (cm.getMapId() <= 302000000) {
                var a = 1
            } else {
                if (cm.getMapId() <= 303000000) {
                    var a = 2
                } else {
                    if (cm.getMapId() <= 304000000) {
                        var a = 3
                    } else {
                        if (cm.getMapId() <= 306000000) {
                            var a = 4
                        } else {
                            var a = 5
                        }
                    }
                }
            }
            cm.setNumberForQuestInfo(32990, "ep" + a, cm.getMapId());
            cm.dispose();
            cm.warp(302000000, 0)
        }
    }
};